// 动态加载图，页面居中，可底部有文字
.ui-loading-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  &.show {
    display: block;
  }
  .ui-loading-content {
    background: rgba(0, 0, 0, 0.65);
    padding: 16.5px 20px;
    text-align: center;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .ui-loading-bright {
      width: 37px;
      height: 37px;
      display: block;
      margin: 8px auto 8px;
      background-image: url("../assets/loading_sprite_white.png");
      background-size: auto 37px;
      animation: am-rotate 1s steps(12) infinite;
    }
  }
  .ui-loading-img {
    background: rgba(0, 0, 0, 0.6);
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 1.25rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    img {
      width: 100%;
      height: 100%;
      display: block;
    }
  }
}

@keyframes am-rotate {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -444px 0;
  }
}